﻿<%@ Page Language="C#" MasterPageFile="~/PaginaPrincipal.master" AutoEventWireup="true" CodeFile="AMateria.aspx.cs" Inherits="AMateria" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 423px; height: 299px">
        <tr>
            <td colspan="2" style="text-align: center">
                <asp:Label ID="Label1" runat="server" Text="Agregar Materia" Font-Size="Larger" Width="316px"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="lblMateria" runat="server" Text="Materia:" Width="85px"></asp:Label></td>
            <td style="width: 100px">
                <asp:TextBox ID="txtMateria" runat="server"></asp:TextBox>
                <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="lblHorasSemanales" runat="server" Text="Horas Semanales:" Width="114px"></asp:Label></td>
            <td style="width: 100px">
                <asp:TextBox ID="txtHorasSemanales" runat="server"></asp:TextBox>
                <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="*"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="lblHorasTotales" runat="server" Text="Horas Totales:" Width="113px"></asp:Label></td>
            <td style="width: 100px">
                <asp:TextBox ID="txtHorasTotales" runat="server"></asp:TextBox>
                <asp:Label ID="Label7" runat="server" ForeColor="Red" Text="*"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label3" runat="server" Text="Especialidad:" Width="123px"></asp:Label></td>
            <td style="width: 100px">
                <asp:DropDownList ID="ddEspecialidad" runat="server" AutoPostBack="True" DataSourceID="odsEspecialidad"
                    DataTextField="Descripcion" DataValueField="IdEspecialidad" OnSelectedIndexChanged="ddEspecialidad_SelectedIndexChanged"
                    Width="158px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label5" runat="server" Text="Plan:" Width="109px"></asp:Label></td>
            <td style="width: 100px">
                <asp:DropDownList ID="ddPlan" runat="server" AutoPostBack="True" DataSourceID="odsPlan"
                    DataTextField="Descripcion" DataValueField="IdPlan" Width="158px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label2" runat="server" Text="* campos obligatorios" Width="148px" ForeColor="Red"></asp:Label></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblError" runat="server" Width="365px"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Button ID="btnAgregarMateria" runat="server" Text="Agregar" /></td>
            <td style="width: 100px">
                <asp:Button ID="btnAtrasMateria" runat="server" Text="Atras" Width="76px" /></td>
        </tr>
    </table>
    <br />
    <asp:ObjectDataSource ID="odsEspecialidad" runat="server" DataObjectTypeName="Entidades.Especialidad"
        DeleteMethod="deleteEspecialidad" InsertMethod="insertEspecialidad" SelectMethod="getEspecialidades"
        TypeName="Negocio.Especialidad" UpdateMethod="modificarEspecialidad"></asp:ObjectDataSource>
    <br />
    <asp:ObjectDataSource ID="odsPlan" runat="server" DataObjectTypeName="Entidades.Plan"
        DeleteMethod="eliminarPlan" InsertMethod="insertPlan" SelectMethod="getPlanes"
        TypeName="Negocio.Plan" UpdateMethod="modificaPlan"></asp:ObjectDataSource>
</asp:Content>

